﻿using BootstrapBlazor.Components;
using BPM.Web.Shared.Data;
using BPM.Web.Shared.Dependencies;
namespace BPM.Web.Shared.Service;

[Scoped(typeof(ISysExLogService))]
public class SysExLogService : BaseService, ISysExLogService
{
    private readonly IExLogClient _exLogClient;
    public SysExLogService(IExLogClient exLogClient, ToastService toast) : base(toast)
        => _exLogClient = exLogClient;

    public Task<QueryData<ExLogOutput>> PageAsync(ExLogPageInput input)
        => QueryAsync(_exLogClient.PageAsync(input));

    public Task<bool> DeleteAsync()
        => ExecuteAsync(_exLogClient.DeleteAsync());
}

